package apiService;

public class App {
    static void Name(int a) {
        for (int j = 1; j <= a; j++) {
            for (int i = 1; i <= j; i++) {
                System.out.print(i + "*" + j + "=" + i * j + "\t");
            }
            System.out.println();
        }

    }

    /**
     * 合并测试1114444111TTTT
     * @param args
     */
    public static void main(String[] args) {
//        Name(100);
//        int b1 = 8;
//        int b2 = 6;
//        int b3;
//        b3 = b1;
//        b1 = b2;
//        b2 = b3;
//        System.out.println("b1=" + b1 + "b2=" + b2);
//        int temp;
//        int intger[] = new int[]{4, 7, 6, 3, 9, 1, 7, 0, 22, 9, 33, 44, 5};
//        //int a=intger[0];
//        for (int i = 0; i < intger.length; i++) {
//            for (int j = i + 1; j < intger.length; j++) {
//                if (intger[i] > intger[j]) {
//                    temp = intger[i];
//                    intger[i] = intger[j];
//                    intger[j] = temp;
//                }
//            }
//            System.out.println(intger[i]);
//        }
        int count[] = new int[50];
        int fff=0;// 标识7是一个轮回
        int t=0;
        for (int i = 0; i < 10000; i++) {
            int index = i%50;
            if(count[index]!=1){
                fff++;//报数
            }

            if(fff==7) {
                fff = 0;//数到6变成0
                count[index]=1;//数到7就给他变成1  这个位置得退出
                System.out.println("第"+i+"次"+index);
                t++;
            }
            System.out.println(count[index]+"\t");
            if(t==47) {
                break;
            }
        }

//        for(int i=0;i<count.length;i++){
//            System.out.print(count[i]+"\t");
//        }
        System.out.println();




        // int a = 0;
        //a =a;
//        Person c = new Person(10, 29.8F);
        //   Person b=new Person(10.0F);
        //  Person npy=new Person("aaa");
        // System.out.println("npy1 kou hong 颜色为"+npy.getColor());
        // npy.change("blue");
        //System.out.println("npy1 kou hong 颜色为"+npy.getColor());
        //Person npy2=new Person("bbb");
        //System.out.println("np "+npy2.getColor());
        //npy2.change("red");
        //System.out.println("npy2 kou hong 颜色为"+npy2.getColor());

        //    System.out.println("hello world");
        //  String lower = "good morning";
        // System.out.println(lower.toUpperCase());
        //String apple = "ENGLISH";
        //System.out.println(apple.toLowerCase());
        //int num1 = 10, num2 = 20;
        //int red = num1 + num2;
        //System.out.println("sdfsdfsdfsdf" + red);

        // int a = 10, b = 50, c = 1000, s;
        //s = a + b;
        //System.out.println(a + "+" + b + "rdgdfgdfh" + s);
        //s = a % b;
        //System.out.println(a + "%" + b + "等于" + s);
        //System.out.print(s + "*=" + c + "等于");
        //s *= c;
        //System.out.println(s);
        //System.out.println("运算前a值为" + a);
        //a++;
        //System.out.println("a++运算已执行");
        //System.out.println("运算后a值为" + a);
        //  double x = 25.75, y = 15.25, z;
        // z = x - y;
        // System.out.println(x + "-" + y + "等于" + z);

//        System.out.print(z+"-=2.50等于");
        //   z -= 2.50;
        //  System.out.println(z);
        //  System.out.println("运算前z值为" + z);
        //z--;
        // System.out.println("z--运算已执行");
        // System.out.println("运算后z值为" + z);
        // z = x / y;
        // System.out.println(x + "/" + y + "等于" + z);
        // String windows = "liu";
        // String window = "bing";
        // String windo = "hao";
        //System.out.println(windows + " " + window + " " + windo);


        //  System.out.print("asdasdasd");
        // System.out.print("111111");
        // System.out.print("dfsdfse46346346");
        // float m = 10.0F;
        // double n = 10.0;
      /* if (m == n)
            System.out.println("m和n相等");
        else
            System.out.println("m和n不相等");
        int num = -1;
        Math.abs(num);
        int abc = 10;
        if (abc % 2 == 0) {
            System.out.println(abc + "为偶数");
            System.out.println(abc + "为偶数");
        } else {
            System.out.println(abc + "为奇数");
        }
        int hour = 1;
        if (hour >= 7 && hour < 12)
            System.out.println("good morning");
        else if (hour >= 12 && hour < 16)
            System.out.print("good afternoon");
        else if (hour >= 16 && hour < 20)
            System.out.println("good evening");
        else
            System.out.println("wanan");
        int day = 1;
        switch (day) {
            case 0:
                System.out.println("Sunday");
                break;
            case 1:
                System.out.println("Monday");
                break;
            case 2:
                System.out.println("Tuesday");
                break;
            case 3:
                System.out.println("Wednesday");
                break;
            case 4:
                System.out.println("Thursday");
                break;
            case 5:
                System.out.println("Friday");
                break;
            case 6:
                System.out.println("Saturday");
                break;
            default:
                System.out.println("无效日期");
        }
        int xyz = 10, count = 0;
        while (xyz <= 15) {
            System.out.println("数字等于" + xyz + "\t");
            count++;
            xyz++;
        }
        System.out.println("while循环执行了" + count + "次");
        for (int i = 1; i <= 5; i++) {
            System.out.println("i的值为" + i);
        }
        for (int q = 1, w = 5; q < 5 && w >= 1; q++, w--) {
            System.out.println("q为" + q + "w为" + w);
        }


        int[] asd = new int[]{111, 233, 444, 555, 555, 666, 888, 3333};
        asd[0] = 111;
        asd[1] = 233;
        asd[2] = 444;
        asd[3] = 555;
        asd[4] = 555;
        asd[5] = 666;
        asd[6] = 666;
        asd[7] = 666;

        if(asd[0]<asd[1])

        System.out.println(asd);
        for (int t = 0; t < asd.length; t++) {
            System.out.println(asd[t]);
        }

        if ("aaa" == args[0]) {
            System.out.println("liubinghao");
        } else {
            System.out.println("liubingnan");
        }

        Fruit f = new Fruit();
        f.setProperties(true, false, 50.0F);
        f.printPropeties();
        Fruit f1, f2, f3;
        f1 = new Fruit();
        f2 = new Fruit();
        f3 = new Fruit();
        f1.setProperties(true, false, 50.F);
        f2.setProperties(false, false, 20.0F);
        f3.setProperties(false, true, 25.0F);
    }
*/

    }
}













